<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">
	<head>
		<title></title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="cache-control" content="Private" />
		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<link href="./favicon.ico" rel="SHORTCUT ICON" />
		<link href="./palette/0/stable.css" rel="stylesheet" type="text/css" />
		<style type="text/css">
			@import "./palette/0/style.css";
		</style>
		<script type="text/javascript" src="./jquery.js"></script>
		<script type="text/javascript" src="./lang/langs.js"></script>
		<script type="text/javascript" src="./rs.js"></script>
		<script type="text/javascript" src="./common.js"></script>
		<script type="text/javascript" src="./stable.js"></script>
		<script type="text/javascript" src="./script.js"></script>
		<script type="text/javascript" src="./rtorrent.js"></script>
		<script type="text/javascript" src="./content.js"></script>
		<!--[if IE]><script type="text/javascript" src="./excanvas.js"></script><![endif]-->
    		<script type="text/javascript" src="./jquery.flot.js"></script>
		<script type="text/javascript" src="./graph.js"></script>
		<script type="text/javascript" src="./plugins.js"></script>
	</head>
	<body>
		<div id="preload"></div>
		<div id="cover">
			<div id="msg"><span id="loadimg">&nbsp;</span><script type="text/javascript"> document.write(WUILang.Loading); </script></div>
		</div>
		<div id="modalbg"></div>
		<div id="dragmask"></div>
		<div id="tadd"> <a href="javascript:Hide('tadd');" class="h"></a>
			<div id="tadd_h"><script type="text/javascript">document.write(WUILang.torrent_add);</script></div>
			<div class="cont fxcaret">
				<form action="addtorrent.php" id="addtorrent" method="post" enctype="multipart/form-data" target="uploadfrm" onsubmit="return CheckUpload(this);">
					<label><script type="text/javascript">document.write(WUILang.Base_directory);</script>:</label><input type="text" id="dir_edit" name="dir_edit" class="TextboxLarge"/><br/>
					<label></label><input type="checkbox" name="not_add_path" id="not_add_path"/><script type="text/javascript">document.write(WUILang.Dont_add_tname);</script><br/>
					<label></label><input type="checkbox" name="torrents_start_stopped" id="torrents_start_stopped"/><script type="text/javascript">document.write(WUILang.Dnt_start_down_auto);</script><br/>
					<label><script type="text/javascript">document.write(WUILang.Label);</script>:</label><input type="text" id="tadd_label" name="tadd_label" class="TextboxLarge"/><br/>
				<hr/>
					<label><script type="text/javascript"> document.write(WUILang.Torrent_file); </script>:</label><input type="file" name="torrent_file" id="torrent_file" class="TextboxLarge"/><br/>
					<label></label><input type="submit" value="Add File" id="add_button" class="Button" /><br/></form>
				<hr/>
				<form action="addtorrent.php" id="addtorrenturl" method="post" target="uploadfrmurl" onsubmit="return CheckURLUpload(this);">
					<label><script type="text/javascript">document.write(WUILang.Torrent_URL);</script>:</label><input type="text" id="url" name="url" class="TextboxLarge"/><br/>
					<label></label><input type="submit" id="add_url" value="Add URL" class="Button"/>
				</form>
			</div>
		</div>
		<div id="stg"> <a href="javascript:Hide('stg');utWebUI.loadSettings();" class="h"></a>
			<div id="stg_h">
				<script type="text/javascript"> document.write(WUILang.uTorrent_settings); </script>
			</div>
			<div id="stg_c" class="fxcaret"></div>
		</div>
		<div id="dlgRss" class="dlg-window"> <a href="javascript:Hide('dlgRss');" class="dlg-close"></a>
			<div id="dlgRss-header" class="dlg-header">
				<script type="text/javascript"> document.write(WUILang.RSS_Downloader); </script>
			</div>
			<div id="dlgRss-content"></div>
		</div>
		<div id="dlgProps" class="dlg-window"> <a href="javascript:Hide('dlgProps');" class="dlg-close"></a>
			<div id="dlgProps-header" class="dlg-header">
				<script type="text/javascript"> document.write(WUILang.Torrent_properties); </script>
			</div>
			<div class="content fxcaret">
				<fieldset>
					<legend>
						<script type="text/javascript"> document.write(WUILang.Bandwidth_sett); </script></legend>
					<div><input type="text" id="prop-ulslots" />
						<script type="text/javascript"> document.write(WUILang.Number_ul_slots); </script>:
					</div>
					<div style="clear:right"><input type="text" id="prop-peers_min" />
						<script type="text/javascript"> document.write(WUILang.Number_Peers_min); </script>:
					</div>
					<div style="clear:right"><input type="text" id="prop-peers_max" />
						<script type="text/javascript"> document.write(WUILang.Number_Peers_max); </script>:
					</div>
					<div style="clear:right"><input type="text" id="prop-tracker_numwant" />
						<script type="text/javascript"> document.write(WUILang.Tracker_Numwant); </script>:
					</div>
					<div class="props-spacer">
					        <input type="checkbox" id="prop-pex" /><label for="prop-pex" id="lbl_prop-pex"><script type="text/javascript"> document.write(WUILang.Peer_ex); </script></label>
						<input type="checkbox" id="prop-superseed" /><label for="prop-superseed" id="lbl_prop-superseed"><script type="text/javascript"> document.write(WUILang.SuperSeed); </script></label>
					</div>
				</fieldset>
				<div class="aright"><input type="button" id="ok1" value="   OK   " class="Button" onclick="javascript:utWebUI.setProperties();" /><input type="button" id="Cancel1" value=" Cancel " class="Button" onclick="javascript:Hide('dlgProps');" /></div>
			</div>
		</div>
		<div id="dlgHelp" class="dlg-window"> <a href="javascript:Hide('dlgHelp');" class="dlg-close"></a>
			<div id="dlgHelp-header" class="dlg-header">
				<script type="text/javascript"> document.write(WUILang.Help); </script>
			</div>
			<div class="content"> 
				<center>
				<table width=100% border=0>
					<tr>
					<td><strong>F1</strong></td><td>This screen</td>
					</tr>
					<tr>
					<td><strong><strong>Ctrl-F1</strong></td><td><a href="javascript:Toggle($$('dlgAbout'))">About program</a></td>
					</tr>
					<tr>
					<td><strong><strong>F4</strong></td><td><a href="javascript:utWebUI.toggleMenu()">Toggle menu</a></td>
					</tr>
					<tr>
					<td><strong><strong>F6</strong></td><td><a href="javascript:utWebUI.toggleDetails()">Toggle details</a></td>
					</tr>
					<tr>
					<td><strong><strong>F7</strong></td><td><a href="javascript:utWebUI.toggleCategories()">Toggle categories</a></td>
					</tr>
					<tr>
					<td><strong><strong>Ctrl-O</strong></td><td><a href="javascript:utWebUI.showAdd()">Add new torrent</a></td>
					</tr>
					<tr>
					<td><strong><strong>Ctrl-P</strong></td><td><a href="javascript:utWebUI.showSettings()">Show program properties</a></td>
					</tr>
					<tr>
					<td><strong><strong>Del</strong></td><td>Delete current torrent(s)</td>
					</tr>
					<tr>
					<td><strong><strong>Ctrl-A</strong></td><td>Select all</td>
					</tr>
					<tr>
					<td><strong><strong>Ctrl-Z</strong></td><td>Deselect all</td>
					</tr>
				</table>
				</center>
			</div>
		</div>
		<div id="dlgAbout" class="dlg-window"> <a href="javascript:Hide('dlgAbout');" class="dlg-close"></a>
			<div id="dlgAbout-header" class="dlg-header">
				<script type="text/javascript"> document.write(WUILang.About); </script>
			</div>
			<div class="content"> <strong>Developers</strong>:<br/><br/>
				&nbsp;&nbsp;&nbsp;Original &micro;Torrent WebUI:<br/>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Carsten Niebuhr (Directrix)<br/><br/>
				&nbsp;&nbsp;&nbsp;rTorrent adaptation (ruTorrent):<br/>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Moskalets Alexander (<a href="mailto:novik65@gmail.com">Novik</a>)<br/>
				<br />
				<strong>Check new vesion <a href="http://rutorrent.googlecode.com" target=_blank>here</a></strong><br/>
				<br />
				<strong>Donate:</strong> (WebMoney)<br/><br/>
				&nbsp;&nbsp;&nbsp;R371559329179<br/>
				&nbsp;&nbsp;&nbsp;Z372104612927<br/>
				&nbsp;&nbsp;&nbsp;E104676675923<br/>
			</div>
		</div>
		<div id="dlgLabel" class="dlg-window"> <a href="javascript:HideModal('dlgLabel');" class="dlg-close"></a>
			<div id="dlgLabel-header" class="dlg-header">
				<script type="text/javascript"> document.write(WUILang.enterLabel); </script>
			</div>
			<div class="content fxcaret">
				<script type="text/javascript"> document.write(WUILang.Enter_label_prom); </script>:<br />
				<input type="text" id="txtLabel" class="Textbox" /><br />
				<input type="button" id="ok2" class="Button" value="   OK   " onfocus="javascript:this.blur();" onclick="javascript:utWebUI.createLabel();HideModal('dlgLabel');" />&nbsp;&nbsp;
				<input type="button" id="Cancel2" class="Button" value=" Cancel " onfocus="javascript:this.blur();" onclick="javascript:HideModal('dlgLabel');" />
			</div>
		</div>
		<div id="yesnoDlg" class="dlg-window"><a href="javascript:HideModal('yesnoDlg');" class="dlg-close"></a>
			<div id='yesnoDlg-header' class='dlg-header'></div>
			<div class='content' id='yesnoDlg-content'></div>
			<div id='yesnoDlg-buttons' class='aright'></div>
		</div>
		<div id="rs"></div>
		<div id="sel"></div>
		<div id="sc"></div>
		<div id="lng" style="display: none;"></div>
		<div id="al">
			<div id="ermsg"></div>
			<a href="javascript:hd('al');" class="h"></a>
		</div>
		<div id="t"><a id="mnu_add" href="javascript:utWebUI.showAdd();" title="Add Torrent...">
				<div id="add"></div>
			</a>
			<div class="TB_Separator"></div>
			<a id="mnu_remove" href="javascript:utWebUI.Remove();" title="Remove">
				<div id="remove"></div>
			</a>
			<div class="TB_Separator"></div>
			<a id="mnu_start" href="javascript:utWebUI.Start();" title="Start">
				<div id="start"></div>
			</a><a id="mnu_pause" href="javascript:utWebUI.Pause();" title="Pause">
				<div id="pause"></div>
			</a><a id="mnu_stop" href="javascript:utWebUI.Stop();" title="Stop">
				<div id="stop"></div>
			</a>
			<div class="TB_Separator"></div>
			<a id="mnu_rss" href="javascript:utWebUI.showRSS();" title="RSS Downloader">
				<div id="rss"></div>
			</a><a id="mnu_settings" href="javascript:utWebUI.showSettings();" title="Settings">
				<div id="setting"></div>
			</a>
			<div class="TB_Separator"></div>
			<a id="mnu_lang" title="Language" href="javascript:ShowLangs();">
				<div id="lang_selector" style="background:transparent url(./lang/images/en.gif) no-repeat center;"></div>
			</a>
			<div class="TB_Separator"></div>
			</a><a id="mnu_help" href="javascript:Toggle($$('dlgHelp'));" title="Help">
				<div id="help"></div>
			</a>
			<div id="sb">
			<div id="ind"></div>
			<a id="mnu_search" href="javascript:ShowSearch()" title="Search">
				<div id="search"></div>
			</a>
			<input type="text" class="TextboxMid" id="query" onfocus="javascript:Hide('sc');" />
			</div>
		</div>
		<table id="maincont" cellpadding="0" cellspacing="0" summary="layout table">
			<tr>
				<td class="uicell" rowspan="3">
					<div id="CatList">
						<div class="catpanel" id="pstate" onclick="javascript:utWebUI.togglePanel(this);"><script type="text/javascript"> document.write(WUILang.pnlState); </script></div>
						<ul id="pstate_cont">
							<li id="-_-_-all-_-_-" onclick="javascript:utWebUI.switchLabel(this);" class="sel">
								<script type="text/javascript"> document.write(WUILang.All); </script> (<span id="-_-_-all-_-_-c">0</span>)</li>
							<li id="-_-_-dls-_-_-" onclick="javascript:utWebUI.switchLabel(this);">
								<script type="text/javascript"> document.write(WUILang.Downloading); </script> (<span id="-_-_-dls-_-_-c">0</span>)</li>
							<li id="-_-_-com-_-_-" onclick="javascript:utWebUI.switchLabel(this);">
								<script type="text/javascript"> document.write(WUILang.Finished); </script> (<span id="-_-_-com-_-_-c">0</span>)</li>
							<li id="-_-_-act-_-_-" onclick="javascript:utWebUI.switchLabel(this);">
								<script type="text/javascript"> document.write(WUILang.Active); </script> (<span id="-_-_-act-_-_-c">0</span>)</li>
							<li id="-_-_-iac-_-_-" onclick="javascript:utWebUI.switchLabel(this);">
								<script type="text/javascript"> document.write(WUILang.Inactive); </script> (<span id="-_-_-iac-_-_-c">0</span>)</li>
							<li id="-_-_-err-_-_-" onclick="javascript:utWebUI.switchLabel(this);">
								<script type="text/javascript"> document.write(WUILang.Error); </script> (<span id="-_-_-err-_-_-c">0</span>)</li>
						</ul>
						<div class="catpanel" id="plabel" onclick="javascript:utWebUI.togglePanel(this);"><script type="text/javascript"> document.write(WUILang.Labels); </script></div>
						<div class="catpanel_cont" id="plabel_cont">
							<ul>
							<li id="-_-_-nlb-_-_-" onclick="javascript:utWebUI.switchLabel(this);">
								<script type="text/javascript"> document.write(WUILang.No_label); </script> (<span id="-_-_-nlb-_-_-c">0</span>)</li>
							</ul>
							<ul id="lbll">
							</ul>
						</div>
					</div>
				</td>
				<td class="uicell" rowspan="3">
					<div id="HDivider"></div>
				</td>
				<td class="uicell">
					<div id="List"></div>
				</td>
			</tr>
			<tr>
				<td class="uicell">
					<div id="VDivider"></div>
				</td>
			</tr>
			<tr>
				<td class="uicell">
					<div id="tdetails">
						<ul id="tabbar">
							<script type="text/javascript">tdTabs.draw();</script>
						</ul>
						<div id="tdcont">
							<div id="gcont"><table cellpadding="5" cellspacing="2" width="100%" summary="layout table" id="mainlayout">
									<tr>
										<td colspan="6" class="Header">
											<script type="text/javascript"> document.write(WUILang.Transfer); </script></td>
									</tr>
									<tr>
										<td width="6%" nowrap><script type="text/javascript"> document.write(WUILang.Time_el); </script>:</td><td width="11%" nowrap><span id="et"></span></td>
										<td width="6%" nowrap><script type="text/javascript"> document.write(WUILang.Remaining); </script>:</td><td width="11%" nowrap><span id="rm"></span></td>
										<td width="6%" nowrap><script type="text/javascript"> document.write(WUILang.Share_ratio); </script>:</td><td width="11%" nowrap><span id="ra"></span></td>
									</tr>
									<tr>
										<td width="6%" nowrap><script type="text/javascript"> document.write(WUILang.Downloaded); </script>:</td><td width="11%" nowrap><span id="dl"></span></td>
										<td width="6%" nowrap><script type="text/javascript"> document.write(WUILang.Down_speed); </script>:</td><td width="11%" nowrap><span id="ds"></span></td>
										<td width="6%" nowrap><script type="text/javascript"> document.write(WUILang.Wasted); </script>:</td><td width="11%" nowrap><span id="wa"></span></td>
									</tr>
									<tr>
										<td nowrap><script type="text/javascript"> document.write(WUILang.Uploaded); </script>:</td><td nowrap><span id="ul"></span></td>
										<td nowrap><script type="text/javascript"> document.write(WUILang.Ul_speed); </script>:</td><td nowrap><span id="us"></span></td>
										<td nowrap>&nbsp;</td><td nowrap>&nbsp;</td>
									</tr>
									<tr>
										<td nowrap><script type="text/javascript"> document.write(WUILang.Seeds); </script>:</td><td nowrap><span id="se"></span></td>
										<td nowrap><script type="text/javascript"> document.write(WUILang.Peers); </script>:</td><td nowrap><span id="pe"></span></td>
										<td nowrap>&nbsp;</td><td>&nbsp;</td>
									</tr>
									<tr>
										<td colspan="6" class="Header">
											<script type="text/javascript"> document.write(WUILang.Tracker); </script></td>
									</tr>
									<tr>
										<td nowrap><script type="text/javascript"> document.write(WUILang.Track_URL); </script>:</td>
										<td colspan="5" nowrap><span id="tu"></span></td>
									</tr>
									<tr>
										<td nowrap><script type="text/javascript"> document.write(WUILang.Track_status); </script>:</td>
										<td colspan="5" nowrap><span id="ts"></span></td>
									</tr>
									<tr>
										<td colspan="6" class="Header">
											<script type="text/javascript"> document.write(WUILang.General); </script></td>
									</tr>
									<tr>
										<td nowrap><script type="text/javascript"> document.write(WUILang.Save_as); </script>:</td>
										<td colspan="5" nowrap><span id="bf"></span></td>
									</tr>
									<tr>
										<td nowrap><script type="text/javascript"> document.write(WUILang.Free_Disk_Space); </script>:</td>
										<td colspan="5" nowrap><span id="dsk"></span></td>
									</tr>
									<tr>
										<td nowrap><script type="text/javascript"> document.write(WUILang.Created_on); </script>:</td>
										<td colspan="5" nowrap><span id="co"></span></td>
									</tr>
									<tr>
										<td nowrap><script type="text/javascript"> document.write(WUILang.Hash); </script>:</td>
										<td colspan="5" nowrap><span id="hs"></span></td>
									</tr>
									<tr>
										<td nowrap><script type="text/javascript"> document.write(WUILang.Comment); </script>:</td>
										<td colspan="5"><span id="cmt"></span></td>
									</tr>
								</table>
							</div>
							<div id="FileList"></div>
							<div id="TrackerList"></div>
							<div id="PeerList"></div>
							<div id="Speed" class="tab"></div>
							<div id="lcont"></div>
						</div>
					</div>
				</td>
			</tr>
		</table>
		<iframe name="uploadfrm" id="uploadfrm" src="" width="0px" height="0px" scrolling="no" frameborder="0" onload="US('uploadfrm');">
		</iframe>
		<iframe name="uploadfrmurl" id="uploadfrmurl" src="" width="0px" height="0px" scrolling="no" frameborder="0" onload="USurl('uploadfrmurl');">
		</iframe>
		<script language="javascript" type="text/javascript">
			addRightClickHandler( document.getElementById("-_-_-all-_-_-"), labelContextMenu );
			addRightClickHandler( document.getElementById("-_-_-dls-_-_-"), labelContextMenu );
			addRightClickHandler( document.getElementById("-_-_-com-_-_-"), labelContextMenu );
			addRightClickHandler( document.getElementById("-_-_-act-_-_-"), labelContextMenu );
			addRightClickHandler( document.getElementById("-_-_-iac-_-_-"), labelContextMenu );
			addRightClickHandler( document.getElementById("-_-_-nlb-_-_-"), labelContextMenu );
			document.getElementById("add_button").value = WUILang.add_button;
			document.getElementById("add_url").value = WUILang.add_url;
			document.getElementById("ok1").value = WUILang.ok1;
			document.getElementById("ok2").value = WUILang.ok2;
			document.getElementById("Cancel1").value = WUILang.Cancel1;
			document.getElementById("Cancel2").value = WUILang.Cancel2;
			document.getElementById("mnu_add").title = WUILang.mnu_add;
			document.getElementById("mnu_remove").title = WUILang.mnu_remove;
			document.getElementById("mnu_start").title = WUILang.mnu_start;
			document.getElementById("mnu_pause").title = WUILang.mnu_pause;
			document.getElementById("mnu_stop").title = WUILang.mnu_stop;
			document.getElementById("mnu_rss").title = WUILang.mnu_rss;
			document.getElementById("mnu_settings").title = WUILang.mnu_settings;
			document.getElementById("mnu_search").title = WUILang.mnu_search;
			document.getElementById("mnu_lang").title = WUILang.mnu_lang;
			document.getElementById("mnu_help").title = WUILang.mnu_help;
			var s = 'transparent url(./lang/images/'+GetActiveLanguage()+'.gif) no-repeat center;';
			var el = document.getElementById('lang_selector');
			try { el.style.cssText = 'background: '+s; } catch(e) { el.setAttribute('style','background: '+s); }
			var html_lang = "<ul>";
			for (var i in AvailableLanguages)
			{
				html_lang += '<li onclick="javascript:SetLang(\''+ i +'\');"><img src="./lang/images/'+ i +'.gif" alt="'+AvailableLanguages[i]+'" title="'+AvailableLanguages[i]+'"></li>';
			}
			html_lang += "</ul>";
			document.getElementById('lng').innerHTML = html_lang;
		</script>
	</body>
</html>
